package zhai.gof.adapter;

//适配器实现
public class Adapter implements IAdapter {

    //组合　对象适合配器
    private Line line;

    public Adapter(Line line) {
        this.line = line;
    }

    @Override
    public void connectLine() {
        line.online();
    }

}
